<?php

namespace App\Observers\Admin;

use App\Models\Medical;


class MedicalObserver
{
  
    /**
     * Handle the Medical "saved" event.
     *
     * @param  \App\Models\Medical  $medical
     * @return void
     */
    public function saved(Medical $medical)
    {
        
        $medical->flushCache();
    }

    /**
     * Handle the Foundation "deleted" event.
     *
     * @param  \App\Models\Medical  $medical
     * @return void
     */
    public function deleted(Medical $medical)
    {
        $medical->flushCache();
    }
   
}
